package com.hfjyz.code.bean;

import java.util.List;

import com.hfjyz.base.bean.BaseBean;
import com.hfjyz.base.entity.CodeEntity;

public class CodeBean extends BaseBean {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1509759836022068362L;
    private Integer id;
    private Integer type;
    private Integer code;
    private String text;

    public CodeBean() {
    }

    public CodeBean(CodeEntity e) {
        id = e.getId();
        type = e.getType();
        code = e.getCode();
        text = e.getText();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public List<String> toJsonArray(int index) {
        return null;
    }

    @Override
    public String validate() {
        return null;
    }
}
